package com.personnel_management.service;

import com.personnel_management.pojo.Depart;
import com.personnel_management.pojo.Staff;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DepartService {
    //添加部门
    public Integer addDepart(Depart depart);
    //删除部门(根据id)
    public Integer deleteDepart(Integer id);
    //修改部门(城市、部门名称)
    public Integer setDepart(Depart depart);
    //查询部门(按照id)
    public Depart seleteOne(Integer id);
    //查询部门(所有)
    public List<Depart> selectDeparts(Depart depart);
    //查询该部门的员工(根据id)
    public List<Staff> selectStaffs(Integer id);
}
